package com.eas.biz.dao.examResult.dataobject;

import com.eas.biz.framework.BaseQuery;

public class ExamResultQuery extends BaseQuery {

    private Long examId;

    private Long studentId;

    private Long classId;

    private Long schoolId;

    private String subject;

    private String orderByScoreDesc;

    private String orderByScoreAsc;

    public Long getExamId() {
        return examId;
    }

    public void setExamId(Long examId) {
        this.examId = examId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public void setScoreOrder(boolean isDesc) {
        if (isDesc) {
            this.orderByScoreDesc = "true";
            this.orderByScoreAsc = null;
        } else {
            this.orderByScoreDesc = null;
            this.orderByScoreAsc = "true";
        }
    }

    public String getOrderByScoreDesc() {
        return orderByScoreDesc;
    }

    public String getOrderByScoreAsc() {
        return orderByScoreAsc;
    }

}
